<div class="col-md-9">
<?php if ($this->go_cart->total_items()==0):?>
    <div class="alert alert-info">
        <a class="close" data-dismiss="alert">×</a>
        <?php echo lang('empty_view_cart');?>
    </div>
<?php else: ?>
    <div class="page-header">
        <h2><?php echo lang('your_cart');?></h2>
    </div>
    <style>.errror{color:#F00}</style>
    <div class="errror"><?php echo $this->session->flashdata('error')?></div>
    <?php echo form_open('cart/update_cart', array('id'=>'update_cart_form'));?>
    <?php include('checkout/summary.php');?>
    <div class="row">
    	<style>.errror{color:#F00}</style>
    	<div class="errror"><?php echo $this->session->flashdata('error')?></div>
        <div class="span5">
           
            <label><?php echo lang('coupon_label');?> </label>
            <input type="text" name="coupon_code" class="span3" style="margin:0px;">
            <input class="span2 btn" type="submit" value="<?php echo lang('apply_coupon');?>"/>
            <?php if($gift_cards_enabled):?>
               
                <label style="margin-top:15px;"><?php echo lang('gift_card_label');?> </label>
                <input type="text" name="gc_code" class="span3" style="margin:0px;">
                <input class="span2 btn"  type="submit" value="<?php echo lang('apply_gift_card');?>"/>
            <?php endif;?>
              <?php  if(!empty($score_user["score"]) and $score_user["score"] >0 and $checkout_cart >= 1 ){?>
		   		<label style="margin-top:10px;">Bạn có muốn sử dụng điểm tích lũy </label>
           		<input type="radio" name="gc_active_score" <?php echo ($this->go_cart->total_score_minus_discount() != 0)?"checked":"" ?> class="span3" value="1" style="margin:0px;"> Có &nbsp;&nbsp;&nbsp;&nbsp;
                <input type="radio" name="gc_active_score" class="span3" <?php echo (!$this->go_cart->total_score_minus_discount() != 0)?"checked":"" ?>  value="0" style="margin:0px;"> Không
                <!--button class="span2 btn">  Sử dụng điểm </button-->
		   <?php }?>
        </div>
        <div class="span7" style="margin-top:20px;">
                <input id="redirect_path" type="hidden" name="redirect" value=""/>
                <?php if(!$this->Customer_model->is_logged_in(false,false)): ?>
                    <input class="btn" type="submit" onclick="$('#redirect_path').val('checkout/login');" value="<?php echo lang('login');?>"/>
                    <input class="btn" type="submit" onclick="$('#redirect_path').val('checkout/register');" value="<?php echo lang('register_now');?>"/>
                <?php endif; ?>
                    <input class="btn" type="submit" value="<?php echo lang('form_update_cart');?>"/>
            <?php if ($this->Customer_model->is_logged_in(false,false) || !$this->config->item('require_login')): ?>
                <input class="btn btn-large btn-primary" type="submit" onclick="$('#redirect_path').val('checkout');" value="<?php echo lang('form_checkout');?>"/>
            <?php endif; ?>
        </div>
    </div>
</form>
<?php if(!$this->Customer_model->is_logged_in(false,false)){ ?>
<p style="color:#F00; margin-top:20px;">* Đăng ký thành viên để hưởng các chính sách ưu đãi, click <a title="Chính sách thành viên" href="<?php echo site_url('chinh-sach-thanh-vien');?>" target="_blank">vào đây</a> để xem chi tiết.</p>
<?php }?>
<p style="color:#F00; margin-top:10px;">* Giao hàng toàn quốc. Miễn phí giao hàng tại TP.HCM, Hà Nội, Đà Nẵng cho đơn hàng trên 2.000.000Đ.</p>
<?php endif; ?>
</div>
